const Path = require("path");

module.exports = function ({ content, path, option, fileInfo }) {
    const UglifyJS = require(Path.resolve(option.nmodulePath, './uglify-es'));
    return UglifyJS.minify(content, Object.assign({}, option.compiler.uglify)).code;
};